package com.example.demo1.pay.service;

import com.example.demo1.pay.entity.OrderPayLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 订单支付表 服务类
 * </p>
 *
 * @author gong
 * @since 2023-02-27
 */
public interface OrderPayLogService extends IService<OrderPayLog> {

    int addOrderPayLog(String serialNumber, String payerWalletId, String payeeWalletId, BigDecimal money, String status);


    /**
     * 退款
     * @param serialNumber 要退款的订单id
     * @param money 退款金额
     */
    int refundSerialNumber(String serialNumber, BigDecimal money);
}
